Skip to content

TST: Test pd.Grouper base floating point error (#25161) #26240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 2, 2019

Conversation

ihsansecer
Copy link
Contributor

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you create this as a separate test? The existing one you are appending to is rather large as is

@WillAyd WillAyd added Groupby Testing pandas testing functions or related to the test suite Datetime Datetime data dtype labels Apr 29, 2019
@codecov
Copy link

codecov bot commented Apr 29, 2019

Codecov Report

Merging #26240 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26240      +/-   ##
==========================================
- Coverage   91.97%   91.96%   -0.01%     
==========================================
  Files         175      175              
  Lines       52368    52368              
==========================================
- Hits        48164    48161       -3     
- Misses       4204     4207       +3
Flag Coverage Δ
#multiple 90.52% <ø> (ø) ⬆️
#single 40.69% <ø> (-0.16%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 96.9% <0%> (-0.12%) ⬇️
pandas/util/testing.py 90.71% <0%> (+0.1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9feb3ad...da71a45. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 29, 2019

Codecov Report

Merging #26240 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26240      +/-   ##
==========================================
+ Coverage   91.97%   91.97%   +<.01%     
==========================================
  Files         175      175              
  Lines       52368    52386      +18     
==========================================
+ Hits        48164    48181      +17     
- Misses       4204     4205       +1
Flag Coverage Δ
#multiple 90.52% <ø> (ø) ⬆️
#single 40.72% <ø> (-0.12%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/io/excel/_base.py 92.13% <0%> (-0.72%) ⬇️
pandas/core/indexes/datetimelike.py 98.13% <0%> (-0.4%) ⬇️
pandas/core/base.py 97.98% <0%> (-0.22%) ⬇️
pandas/plotting/_core.py 83.63% <0%> (-0.14%) ⬇️
pandas/core/frame.py 96.9% <0%> (-0.12%) ⬇️
pandas/tseries/holiday.py 93.1% <0%> (ø) ⬆️
pandas/core/generic.py 93.54% <0%> (ø) ⬆️
pandas/core/arrays/period.py 98.53% <0%> (ø) ⬆️
pandas/core/groupby/groupby.py 97.23% <0%> (ø) ⬆️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9feb3ad...913dd1c. Read the comment docs.

@@ -303,6 +303,18 @@ def test_grouper_getting_correct_binner(self):
def test_grouper_iter(self, df):
assert sorted(df.groupby('A').grouper) == ['bar', 'foo']

def test_grouper_base(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move to test pandas/tests/resample/test_timegrouper and also test in .resample (which is what this calls)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it

@jreback jreback added this to the 0.25.0 milestone May 2, 2019
@jreback jreback merged commit d49ebd4 into pandas-dev:master May 2, 2019
@jreback
Copy link
Contributor

jreback commented May 2, 2019

thanks @ihsansecer

@ihsansecer ihsansecer deleted the test-grouper-base branch July 11, 2019 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Groupby Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Groupby creates emptu groups depending on base parameter
4 participants